package com.zyh.kaoshi;
interface Inter{
    public abstract void max(int a,int b);
    public abstract void fun();
}
public class Test4 {
    public static void main(String[] args) {
        Inter inter=new Inter() {
            @Override
            public void max(int a, int b) {
                if (a>b){
                    System.out.println("最大值为"+a);
                }
                else {
                    System.out.println("最大值为"+b);
                }
            }

            @Override
            public void fun() {
                System.out.println("这是fun");
            }
        };
        inter.max(7,3);
        inter.fun();
    }
}
